package homework_2.animal;

/**
 * @author 朱
 * @date 2019031819:59
 */
public class Dog extends Animal {
    public Dog(String type, String live, String sport, String name) {
        super(type, live, sport, name);
    }
    public void output(){
        System.out.println(name+"的种类:"+type+"，生存方式："+live+",运动方式:"+sport);
    }
    @Override
    public String getSport() {
        return super.getSport();
    }

    @Override
    public String getName() {
        return super.getName();
    }
}
